package com.torry.replay.api.result;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

/**
 * @author torry.wang
 */
@Data
public class GetDragonInfoResult {

    private Long id;
    @ApiModelProperty(value = "日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDate date;

    @ApiModelProperty(value = "股票名称")
    private String name;

    @ApiModelProperty(value = "涨跌幅 %")
    private Double rangePercent;

    private List<DragonDetail> buyList;
    private List<DragonDetail> sellList;

    @ApiModelProperty(value = "总买额")
    private Double totalBuyAmount;

    @ApiModelProperty(value = "总卖额")
    private Double totalSellAmount;

    @ApiModelProperty(value = "总净额")
    private Double totalNetAmount;

    @Data
    public static class DragonDetail {
        private Long id;
        private Long dragonId;

        @ApiModelProperty(value = "席位id")
        private Long seatId;

        @ApiModelProperty(value = "买额 单位 万")
        private Double buyAmount;

        @ApiModelProperty(value = "卖额 单位万")
        private Double sellAmount;

        @ApiModelProperty(value = "席位名称")
        private String seatName;
        @ApiModelProperty(value = "席位昵称")
        private String seatNickName;
        @ApiModelProperty(value = "净额")
        private Double netAmount;
    }
}
